package com.randi.system.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author ziye
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "UserRoleBody", description = "用户角色授权参数")
public class UserRoleDTO {

    @NotNull
    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @NotEmpty
    @ApiModelProperty(value = "用户ID列表")
    private List<Long> userIds;

}
